<template>
    <div class="attr-list v-talbe-attr">
        <CommonAttr></CommonAttr>
        <!-- <EditTable></EditTable> -->
        <el-form>
            <el-form-item label="表单计算">
                <el-switch active-text="是" inactive-text="否" v-model="propValue.showSummary"></el-switch>
            </el-form-item>
            <el-form-item label="分页">
                <el-switch active-text="是" inactive-text="否" v-model="propValue.isHavePage"></el-switch>
            </el-form-item>
            <el-form-item label="计算方式">
                <el-radio-group v-model="propValue.showSummaryType">
                    <el-radio :label="0">总和</el-radio>
                    <el-radio :label="1">平均值</el-radio>
                    <el-radio :label="2">最大值</el-radio>
                    <el-radio :label="3">最小值</el-radio>
                </el-radio-group>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
import CommonAttr from '../common/CommonAttr'

export default {
    components: { CommonAttr },
    computed: {
        propValue() {
            return this.$store.state.curComponent.propValue
        },
    },
}
</script>
